<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 
            强制绑定class的值也可以是一个数组，数组中的每个值都会作为类名
            强制绑定的类名和普通类名可以共存
         -->
        <div :class="['one','two','three']"></div>
        <p :class="className"></p>
    </div>

    <script>
        const vm = new Vue({
            el:"#app",
            data() {
                return {
                    className:['one','two','three']
                }
            },
        })

    </script>
</body> 
</html>